using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class ChiTietTin : System.Web.UI.Page
{
    clsxuly xuly = new clsxuly();
    DataTable tbl = new DataTable();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["Ma"] != null)
        {
            string tieude;
            string chitietin;
            string hinhanh;
            string html = "";
            tbl = xuly.TimChiTietTin(Request.QueryString["Ma"]);
            foreach (DataRow dr in tbl.Rows)
            {
                tieude = dr["TenTinTuc"].ToString();
                chitietin = dr["NoiDung"].ToString();
                hinhanh = dr["HinhAnh"].ToString();
                //html += "<br/>";
                html += "<font color='#3366FF' size='5'>" + tieude + "</font><br /><br/>";
                html += "<img src='" + hinhanh + "' alt='"+ tieude +"' width='394' /><br /><br />";
                html += chitietin;
            }
            HienThiTinTin.InnerHtml = html;

        }
    }
}
